<?php
/**
 * Created by PhpStorm.
 * User: sunshubo
 * Date: 2017/8/11
 * Time: 9:50
 */
$url = $_GET['url'];
?>
<!DOCTYPE HTML PUBLIC>
<head><title>梦幻部落优酷云API</title>
    <style type="text/css">body, html, div {
            background-color: black;
            padding: 0;
            margin: 0;
        }</style>
</head>
<body>
<div id="video">
    <div id="player"></div>
</div>
<script type="text/javascript" src="http://player.a2yy.com/player/player.js" charset="utf-8"></script>
<script type="text/javascript">
    var flashvars = {
        f: 'http://player.a2yy.com/player/m3u8.swf',
        a: '<?php echo $url?>',
        s: 4,
        c: 0,
        p: 1
    };
    var video = ['<?php echo $url?>'];
    var params = {bgcolor: '#FFF', allowFullScreen: true, allowScriptAccess: 'always', wmode: 'transparent'};
    var support = ["iPad", "iPhone", "ios", "android", "ipod", "mobile", "windows phone", "ucweb", "mqqbrowser", "SogouMobileBrowser"];
    CKobject.embedSWF('http://player.a2yy.com/player/player.swf', 'player', 'ckplayer_player', '100%', '100%', flashvars, params);
    CKobject.embedHTML5('player', 'ckplayer_player', '100%', '100%', video, flashvars, support);
</script>
</body>
</html>